module = angular.module('inspinia');

//支持rest，使用说明请见 https://docs.angularjs.org/api/ngResource
module.factory('rowBodyService', function ($resource) {
    //var data = $resource('/dev/json/rowBodyConfig.json', {}, {
    //    get: {method: 'GET', params: {_: new Date().getTime()}, isArray: false}
    //});
    var data = $resource('/money/detail/:userId', {}, {
        get: {method: 'GET', params: {_: new Date().getTime()}, isArray: false}
    });
    return data;
});

module.factory("testService", function () {
    return {
        greet: function(msg) {alert(msg);}
    }
});
